package cn.gcyl.module.biz.dal.mysql.privacy;

import cn.gcyl.framework.common.pojo.PageResult;
import cn.gcyl.framework.mybatis.core.mapper.BaseMapperX;
import cn.gcyl.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.gcyl.module.biz.controller.admin.privacy.vo.*;
import cn.gcyl.module.biz.dal.dataobject.privacy.PrivacyDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 隐私政策 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface PrivacyMapper extends BaseMapperX<PrivacyDO> {

    default PageResult<PrivacyDO> selectPage(PrivacyPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<PrivacyDO>()
                .orderByDesc(PrivacyDO::getId));
    }

}